package com.ts.api.common.redis;

import com.gitee.apanlh.util.cache.redis.RedisKeyBuilder;
import com.gitee.apanlh.util.cache.redis.api.RedisList;
import com.gitee.apanlh.util.cache.redis.api.RedisString;
import org.springframework.stereotype.Component;

/**
 *  撞库RedisKey
 *  @author Pan
 */
@Component
public class DataExchangeRedisKey {

    /** 有效期三秒钟 */
    public static final RedisString PHONE_MD5 = RedisKeyBuilder.builder().withKeys("data_exchange_phone").buildString();

    /** 有效期三秒钟 */
    public static final RedisString WAKE_PHONE_MD5 = RedisKeyBuilder.builder().withKeys("wake_data_exchange_phone").buildString();

    /** 有效期三秒钟 */
    public static final RedisString CUSTOM_PHONE_MD5 = RedisKeyBuilder.builder().withKeys("custom_data_exchange_phone").buildString();

    /** 撞库多次推送记录保存 */
    public static final RedisList MULTI_PUSH = RedisKeyBuilder.builder().withKeys("multi_push_data_exchange").buildList();

    /** 当天撞库数量记录 */
    public static final RedisString DATA_EXCHANGE_TOTAL = RedisKeyBuilder.builder().withKeys("data_exchange_total").buildString();
}
